/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Waf.Model
{

    /// <summary>
    ///  setFilterReqRespRulesReq
    /// </summary>
    public class SetFilterReqRespRulesReq
    {

        ///<summary>
        /// WAF实例id
        ///Required:true
        ///</summary>
        [Required]
        public string WafInstanceId{ get; set; }
        ///<summary>
        /// 域名
        ///Required:true
        ///</summary>
        [Required]
        public string Domain{ get; set; }
        ///<summary>
        /// id为0时为新增，更新时该参数不能为空
        ///</summary>
        public int? Id{ get; set; }
        ///<summary>
        /// 规则名称
        ///Required:true
        ///</summary>
        [Required]
        public string Name{ get; set; }
        ///<summary>
        /// 操作对象，[&quot;req&quot;/&quot;resp&quot;]，更新时该字段不更新
        ///Required:true
        ///</summary>
        [Required]
        public string OpObject{ get; set; }
        ///<summary>
        /// 匹配类型，[&quot;cookie&quot;/&quot;header&quot;]
        ///Required:true
        ///</summary>
        [Required]
        public string MatchType{ get; set; }
        ///<summary>
        /// 匹配模式，[&quot;del&quot;/&quot;set&quot;]
        ///Required:true
        ///</summary>
        [Required]
        public string MatchOp{ get; set; }
        ///<summary>
        /// filter key
        ///Required:true
        ///</summary>
        [Required]
        public string Key{ get; set; }
        ///<summary>
        /// 匹配值，当匹配模式为&quot;del&quot;时val应为空
        ///Required:true
        ///</summary>
        [Required]
        public string Val{ get; set; }
        ///<summary>
        /// 匹配值类型，默认为&quot;str&quot;(字符型)，当设置请求头时，该字段可配置为&quot;php&quot;(表示脚本类型)
        ///</summary>
        public string ValType{ get; set; }
    }
}
